﻿using System;

class DeclareingVariables
{
    static void Main()
    {
        //Exercise 4. Assignment with hexadecimal value
        int number254 = 0xFE;
        Console.WriteLine(number254);
        Console.WriteLine("---------------------------------------------");

        //Exercise 5. Assignment with Unicode code 72
        //decimal 72 has a 48 hexadecimal value
        char unicode72 = (char)0x48;
        Console.WriteLine(unicode72);
        Console.WriteLine("---------------------------------------------");

        //Exercise 6. Assignment with boolean value
        bool isFemale = false;
        Console.WriteLine(isFemale);
        Console.WriteLine("---------------------------------------------");

        //Exercise 7. Declaration of string and object type variables
        string string1 = "Hello";
        string string2 = "World";
        object object1 = string1 + " " + string2;
        string string3 = Convert.ToString(object1);
        Console.WriteLine(string3);
        Console.WriteLine("---------------------------------------------");

        //Exercise 8. Escaping sequence
        string firstString = "The \"use\" of quotations causes difficulties.";
        string secondString = @"The ""use"" of quotations causes difficulties.";
        Console.WriteLine(firstString);
        Console.WriteLine(secondString);
        Console.WriteLine("The {0}use{0} of quotations causes difficulties.", (char)34);
        Console.WriteLine("---------------------------------------------");
    }
}